import request from '@/utils/request'

//  分页查询字典类型信息
export function getPageList(query) {
  return request({
    url: '/api/admin/system/dict/type/page',
    method: 'post',
    data: query
  })
}

//  保存字典类型信息
export function handleSave(data) {
  return request({
    url: '/api/admin/system/dict/type/save',
    method: 'post',
    data: data
  })
}

//  删除字典类型信息
export function handleDelete(data) {
  return request({
    url: '/api/admin/system/dict/type/delete',
    method: 'post',
    params: data
  })
}

//  刷新字典
export function handleRefresh() {
  return request({
    url: '/api/admin/system/dict/type/refresh',
    method: 'post'
  })
}

